<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language; ?>" lang="<?php print $language->language; ?>">
	<head profile="http://gmpg.org/xfn/11">
		<title><?php print $head_title ?></title>
		<?php print $head ?>
		<?php print $styles ?>   
		<?php print $scripts ?>
		<script type="text/javascript" src="http://use.typekit.com/ebr1blj.js"></script>
		<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
  </head>
	<body class="<?php print $body_classes; ?>">
		<div id="bgcontainer" class="container xshowgrid">
			<div class="Header span-24">
				<div class="Menu span-12">
					<?php if (isset($primary_links)) {
						print theme('links', $primary_links, array('class' => 'navmenu primary-links'));
					} ?>
				</div>
				<div class="Logo prepend-12 span-12 last">
					<div class="LogoText">
						<h1><a href="<?php print base_path(); ?>"><?php print $site_name; ?></a></h1>
					</div>
					<p class="Desc"><?php print $site_slogan; ?></p>
				</div>
			</div>
			<div class="CON span-21">
				<div class="SCS span-12">
					<?php if ($breadcrumb) { print $breadcrumb; } ?>
					<?php if ($tabs) { ?>
						<div id="tabs-wrapper" class="clear-block">
							<?php if ($title) { ?>
								<h2 class="with-tabs"><?php print $title; ?></h2>
							<?php } ?>
							<?php print $tabs; ?>
						</div>
					<?php } else { ?>
						<h2><?php print $title; ?></h2>
					<?php } ?>
					<?php if (isset($tabs2)) { print $tabs2; } ?>
					<?php if ($help) { print $help; } ?>
					<?php if ($show_messages && $messages) { print $messages; } ?>
					<?php print $content; ?>
				</div>
				<div class="SR span-8 last">
					<div class="SRL">
						<div class="Search">
							<form method="post" accept-charset="UTF-8" action="/">
							  <fieldset>
									<input type="text" name="s" class="keyword" name="search_theme_form" />
									<div class="bt">
										<input name="submit" type="image" class="search" title="Search" src="<?php print base_path() . path_to_theme(); ?>/images/ButtonTransparent.png" alt="Search" />
									</div>
								</fieldset>
							</form>
							<div class="Syn">
								<ul>
									<li><a href="/node/feed">Entries</a> (RSS)</li>
								</ul>
							</div>
						</div>
						<?php /* $tw = twitter_fetch_timeline('paddy_deburca'); print $tw[0][text]; */ ?>
						<div class="About">
							<?php if ($mission) { ?>
							  <div id="mission">
									<?php print $mission; ?>
								</div>
							<?php } ?>
							<?php print $twitter; ?>
						</div>
						<div class="Recent">
							<ul class="TabMenu">
								<li class="TabLink"><a href="#top" id="tab0" onclick="ShowTab(0)"><span>Recent Comments</span></a></li>
								<li class="TabLink"><a href="#top" id="tab1" onclick="ShowTab(1)"><span>Recent Articles</span></a></li>
								<li class="NavLinks" id="paging0"><div style="display:none"></div></li>
								<li class="NavLinks" id="paging1"><div style="display:none"></div></li>
							</ul>
							<div class="TabContent" style="display:none" id="div0">
								<?php print $recent_comments; ?>
							</div>
							<div class="TabContent" style="display: none" id="div1">	
								<?php print $recent_articles; ?>
							</div>
							<script type="text/javascript">ShowTab(0);</script>
						</div>
						<br class="clearfix" />
						<?php print $left; ?>
						<?php print $right; ?>
					</div>
					<!-- div class="SRR" -->
						<?php /* print $right; */ ?>
					<!-- /div -->
				</div>
			</div>
		</div>
		<div class="FBG">
			<div class="Footer">
				<?php if ($footer_message) { print $footer_message; } ?>
				<?php if ($footer) { print $footer; } ?>
				<?php if ($closure) { print $closure; } ?>
				<p><strong>Copyright &copy; 2007 - <? print $site_name; ?> - is proudly powered by <a style="text-decoration: none;" href="http://drupal.org/">Drupal</a></strong> <br />
				Dilectio Theme is created by: <a href="http://designdisease.com/" title="Professional Blog Design">Design Disease</a> brought to you by Smashingmagazine.com</p> 
			</div>
		</div>
	</body>
</html>